package com.dbpms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dbpms.pojo.StudentInfo;
import com.dbpms.pojo.User;
import com.dbpms.pojo.menuPower.menupowerinfo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface IUserService extends IService<User> {

    // 用户登录
    public User login(String user_account, String user_pwd);

    // 注册新用户
    @Transactional
    public int addRegisterUser(int stu_id, String stu_name, String user_account, String user_pwd);

    // 判定学号是否存在
    public StudentInfo ifExitUser(String number);

    // 获得菜单权限列表
    public List<menupowerinfo> getMenuPowerInfo(int role);

    // 修改密码
    public int updatePwd(String old_pwd, String new_pwd, int user_id);

    // TODO 修改用户信息
    public int updateUserInfo(StudentInfo info, String fileName);

}
